home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / asus-wireless-2.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  332b  |  15 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/acpi-support/state-funcs
  4.  
  5. ON_VALUE="e"
  6. OFF_VALUE="f"
  7.  
  8. CHARACTER_POSITION="8"
  9.  
  10. HOTKEY_VALUE=`echo "$3"| cut -b "$CHARACTER_POSITION"`
  11.  
  12. if ( isAnyWirelessPoweredOn && [ "$HOTKEY_VALUE" =  "$OFF_VALUE" ] ) || ( ! isAnyWirelessPoweredOn && [ "$HOTKEY_VALUE" =  "$ON_VALUE" ] ) ; then
  13.     toggleAllWirelessStates
  14. fi
  15.